﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text.RegularExpressions;

namespace BackupMirthToTFS
{
    public static class DateTimeExtension
    {
        
        public static string PrettyFormat(this DateTime datetime)
        {
            if (datetime== null) { throw new ArgumentNullException("format"); }
            return datetime.ToString("yyyy-MMM-dd");
        }

       public static string PrettyFormatWithTime(this DateTime datetime)
        {
            if (datetime== null) { throw new ArgumentNullException("format"); }
            return datetime.ToString("yyyy-MMM-dd hh:mm");
        }
    }
}